<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('Проверка');
?>
<?= $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
    <?= $this->headMeta(); ?>
    <?= $this->headTitle(); ?>
    <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/main.css'); ?>
    <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/reset.css'); ?>
    <?= $this->headLink()->appendStylesheet($this->baseUrl().'/styles/typography.css'); ?>
</head>
<body>
<!--Header-->
	<header>
		<!--Logo-->
		<div id="logo">
			<a class="image_s" href="#">
                            <img src= "<?=$this->baseUrl(); ?>/images/logo.png" alt="" />
			</a>
		</div>
		<!--Search-->
		<div class="header_search">
			<form action="">
				<input type="text" name="search" placeholder="Search" id="ac">
				<input type="submit" value="">
			</form>
		</div>
	</header>
<!--Dreamworks Container-->
<div id="dreamworks_container">
    <!--Primary Navigation-->
    <nav id="primary_nav">
        <ul>
            <li class="nav_forms <?= Zend_Controller_Front::getInstance()->getRequest()->getControllerName() == 'users' ? 'active' : ''; ?>"><a href="<?= $this->url(array(
                    'module'        => 'default',
                    'controller'    => 'users',
                    'action'        => 'view',
                    'id'            => Zend_Auth::getInstance()->hasIdentity() ? Zend_Auth::getInstance()->getIdentity()->user_id : ""
                    ))?>">Профиль</a>
            </li>
            
            <li class="nav_pages <?= Zend_Controller_Front::getInstance()->getRequest()->getControllerName() == 'problems' ? 'active' : ''; ?>"><a href="<?= $this->url(array(
                    'module'        => 'system',
                    'controller'    => 'problems',
                    'action'        => 'index'
                    ))?>">Маселелер жыйнагы</a>
            </li>
            
            <li class="nav_dashboard"><a href="">Олимпиадалар</a></li>
            <li class="nav_uielements"><a href="">Алгоритмдер</a></li>
            <li class="nav_graphs"><a href="">Рейтинг</a></li>
            <? if (Zend_Auth::getInstance()->hasIdentity()) :?>
                <? if (Zend_Auth::getInstance()->getIdentity()->user_role_id == 1):?>
                    <li class="nav_typography"><a href="">Админ панель</a></li>
                <? endif;?>
            <? endif;?>
        </ul>
    </nav>
<!--Main Content-->
<section id="main_content">
<!--Secondary Navigation-->
	<nav id="secondary_nav"> 
            <!--UserInfo-->
            <dl class="user_info"> 
                    <?= $this->render(APPLICATION_PATH . 'views/scripts/userInfo.phtml');?>
            </dl>
            <?= $this->render('menu.phtml');?>
        </nav>
<!--Content Wrap-->
<div id="content_wrap">	<!--Activity Stats-->
    	
        <div id="activity_stats">
        	<h3>Activity</h3>
            <div class="activity_column">
            	<span class="iconsweet">+</span> <span class="big_txt rd_txt">12</span>Жиберилген
            </div>
            <div class="activity_column">
            	<span class="iconsweet">Y</span> <span class="big_txt gr_txt">6</span>Кабыл алынган
            </div>
            <div class="activity_column">
            	<span class="iconsweet">#</span> <span class="big_txt">2</span>Орун
            </div>                         
        </div> 
 	<div class="one_wrap">
            <?= $this->layout()->content; ?>  
        </div>        
</div>
</section>
</div>
</body>
</html>